package com.gxc.healthfood.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName user_preferences
 */
@TableName(value ="user_preferences")
@Data
public class UserPreferences implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 饮食限制(JSON格式: {"lactose": true, "gluten": false})
     */
    @TableField(value = "dietary_restrictions")
    private String dietaryRestrictions;

    /**
     * 不喜欢的食物ID列表
     */
    @TableField(value = "disliked_foods")
    private String dislikedFoods;

    /**
     * 喜欢的菜系
     */
    @TableField(value = "preferred_cuisines")
    private String preferredCuisines;

    /**
     * 
     */
    @TableField(value = "created_at")
    private Date createdAt;

    /**
     * 
     */
    @TableField(value = "updated_at")
    private Date updatedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}